<script setup>
import { ref, computed } from 'vue'
// 原始数据
const count = ref(1)
// 计算属性
const doubleCount = computed(()=>{
  return count.value * 2
})

const list = ref([1,2,3,4,5,,6,7,8,9,10,11,12])
const filterList = computed(()=>{
  return list.value.filter(item=>item>2)
})

</script>

<template>
<div>{{count}}</div>
<div>{{doubleCount}}</div>
<div>{{ filterList }}</div>
<button @click="setCount">点击</button>
</template>

<style scoped>

</style>
